package de.gameduell.framework.game.billard.event {
	import flash.events.Event;	
	
	/**
	 * @author cbra
	 */
	public class ControllerEvent extends Event{
		public static const ACTIVE_CHANGE:String = "active_change";
		public static const BALL_IN_HAND:String = "ballInHand";
		public static const MESSAGE:String = "message";
		public static const HOLE_ANNOUNCED:String = "holeAnnounced";
		
		private var _active:Boolean;
		private var _messageId:int;	
		
		public function ControllerEvent(type:String, aActive:Boolean = false,aMessageId:int = 0) {
			super(type, bubbles, cancelable);
			_messageId = aMessageId;
			_active = aActive;
		}
		
		public function get active():Boolean{
			return _active;
		}
		
		public function get messageId():int{
			return _messageId;
		}
	}
}
